package com.summer.learning.feignClient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "content-api", fallbackFactory = GetPublishCourseByIdFallbackFactory.class)
public interface GetPublishCourseById {

    @ResponseBody

    @GetMapping("content/coursepublish/getById/{courseId}")
    String getById(@PathVariable("courseId") long courseId);

}
